//
//  LFDataRequest.h
//  CoreDataForHXClient
//
//  Created by Apple on 14-6-27.
//  Copyright (c) 2014年 Lemon. All rights reserved.
//

#import <Foundation/Foundation.h>

extern NSString *const kLFDataRequestErrorDomain;
typedef void(^completeAction)(id responseData, NSError *error);

typedef NS_ENUM(NSInteger, LFDataRequestErrorCode)
{
    kLFDataRequestNoError = 0,
    kLFDataRequestPaiseError //数据解析出错
};

@interface LFDataRequest : NSObject

+ (void)dataRequestWith:(NSURLRequest *)urlRequest complete:(completeAction)completeAction;

@end
